package groups;

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@taglib uri="http://www.icesoft.com/icefaces/component" prefix="ice" %>
<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>Editing Groups</title>
            <link rel="stylesheet" type="text/css" href="/WebIDE-war/faces/jsfcrud.css" />
        </head>
        <body>
            <ice:panelGroup id="messagePanel" layout="block">
                <ice:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </ice:panelGroup>
            <h1>Editing Groups</h1>
            <ice:form>
                <ice:panelGrid columns="2">
                    <ice:outputText value="GroupName:"/>
                    <ice:outputText value="#{groups.groups.groupName}" title="GroupName" />
                    <ice:outputText value="UsersCollection:"/>
                    <ice:selectManyListbox id="usersCollection" value="#{groups.groups.jsfcrud_transform[jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method.collectionToArray][jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method.arrayToList].usersCollection}" title="UsersCollection" size="6" converter="#{users.converter}" >
                        <f:selectItems value="#{users.usersItemsAvailableSelectMany}"/>
                    </ice:selectManyListbox>
                    <ice:outputText value="GroupsResourcesCollection:"/>
                    <ice:outputText escape="false" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getCollectionAsString'][groups.groups.groupsResourcesCollection == null ? jsfcrud_null : groups.groups.groupsResourcesCollection].jsfcrud_invoke}" title="GroupsResourcesCollection" />
                </ice:panelGrid>
                <br />
                <ice:commandLink action="#{groups.edit}" value="Save">
                    <f:param name="jsfcrud.currentGroups" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][groups.groups][groups.converter].jsfcrud_invoke}"/>
                </ice:commandLink>
                <br />
                <br />
                <ice:commandLink action="#{groups.detailSetup}" value="Show" immediate="true">
                    <f:param name="jsfcrud.currentGroups" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][groups.groups][groups.converter].jsfcrud_invoke}"/>
                </ice:commandLink>
                <br />
                <ice:commandLink action="#{groups.listSetup}" value="Show All Groups Items" immediate="true"/>
                <br />
                <ice:commandLink value="Index" action="welcome" immediate="true" />
            </ice:form>
        </body>
    </html>
</f:view>
